package com.gwctv.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @ConfigurationProperties jwt令牌属性配置类
 * @ConfigurationProperties(profix="sky.jwt") 作用是指定配置项前缀
 */
@Data
@Component
@ConfigurationProperties(prefix = "sky.jwt")
public class JwtProperties {
    /**
     * 管理端员工生成jwt令牌相关配置
     */
    private String adminSecretKey;
    private Long adminTtl;
    private String adminTokenName;

    /**
     * 设定微信用户端jwt令牌相关设置
     */
    private String userSecretKey;
    private Long userTtl;
    private String userTokenName;
}
